package com.qidian.mes.sys.controller;

import com.qidian.mes.sys.service.UserService;
import com.qidianit.mes.common.pojo.MesResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 戴着假发的程序员
 * @company 起点编程
 * @date 2025/8/7 9:45
 * @description
 */
@RestController
@RequestMapping("/sys")
public class LoginController {
    @Autowired
    private UserService userService;
    @PostMapping("/login")
    public MesResult<String> login(String username, String password) {
        return userService.login(username, password);
    }
}
